<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img{
            width: 500px;
            height: 500px;
        }
    </style>
</head>
<body>
    <div id="app">
        <img :src="url" alt="">
        <button @click="btn1">1</button>
        <button @click="btn2">2</button>
        <button @click="btn3">3</button>
    </div>
    <script src="js/vue.js"></script>
    <script>
        new Vue({
            data:{
                url:"img/1.jpg"
            },
            methods:{
                btn1(){
                    this.url = "img/1.jpg"
                },
                btn2(){
                    this.url = "img/2.jpg"
                },
                btn3(){
                    this.url = "img/3.jpg"
                }
            }
        }).$mount("#app")
    </script>
</body>
</html>